<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
?>



<script language="JavaScript">

    function RequiredFields(id,id2) {
    
 if (document.getElementById(id).value=="")
 {           

document.getElementById(id).style.border='solid 0px red';
document.getElementById(id2).innerHTML = '<font color=red size=-2><? print $REQUIRED_FIELD; ?></font><br>';
                           
                     } 
                   }
             
             
                function RequiredFields2(id,id2) {
    
 if (document.getElementById(id).value!="")
 {        
document.getElementById(id).style.border='solid 0px #bbbbbb';
document.getElementById(id2).innerHTML = '';  
                                        
                     } 
                   }
                   
                   
                   function passwordChanged() {
var strength = document.getElementById('strength');

//var strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\W).*$", "g");



var strongRegex = new RegExp("^(?=.{8,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");

var mediumRegex = new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");

var enoughRegex = new RegExp("(?=.{6,}).*", "g");


var pwd = document.getElementById("5");
if (pwd.value.length==0) {
strength.innerHTML = 'Six (6) Characters Min.';
} else if (false == enoughRegex.test(pwd.value)) {
strength.innerHTML = '<span class=BOLDTEXT><span style="color:red"><? print $REGISTER_PAGE_MORE_CHARACTERS_NEEDED; ?></span></span>';
} else if (strongRegex.test(pwd.value)) {
strength.innerHTML = '<span class=BOLDTEXT><span style="color:green"><? print $REGISTER_PAGE_STRONG; ?></span></span>';
} else if (mediumRegex.test(pwd.value)) {
strength.innerHTML = '<span class=BOLDTEXT><span style="color:orange"><? print $REGISTER_PAGE_MEDIUM; ?></span></span>';
} else {
strength.innerHTML = '<span class=BOLDTEXT><span style="color:red"><? print $REGISTER_PAGE_WEAK; ?></span></span>';
}


         }          
                         
                     
function passwordCheck() {
  var password1=document.getElementById('5').value;
    var password2=document.getElementById('6').value;


                   if ( password1 === password2 ) {

        document.getElementById('password_match').innerHTML = '<span style="color:green"><? print $REGISTER_PAGE_PASSWORDS_MATCH; ?></span>';

       }
       
       
        if ( password1 != password2 ) {

        document.getElementById('password_match').innerHTML = '<span style="color:red"><? print $REGISTER_PAGE_PASSWORDS_DO_NOT_MATCH; ?></span>';

       }

        }
            
              
              
                             
function termcheck() {
  var password1=document.getElementById('13').checked;
    var password2=document.getElementById('14').checked;


                   if ( password1 == false) {

       alert('<? print $REGISTER_PAGE_PLEASE_CHECK_THE_TERMS_AND_CONDITIONS_BOX; ?>');
            return (false);
       }
       
       
        if ( password2 == false) {

         alert('<? print $REGISTER_PAGE_PLEASE_CHECK_THE_PRIVACY_POLICY_BOX; ?>');
                return (false);
       }
               
               return (true);
        }
        
        
        function emailCheck() {
  
  
  
  var password1=document.getElementById('7').value;
    var password2=document.getElementById('7b').value;


                   if ( password1 === password2 ) {

        document.getElementById('email_match').innerHTML = '<span style="color:green"><? print $REGISTER_PAGE_EMAILS_MATCH; ?></span>';

       }
       
       
        if ( password1 != password2 ) {

        document.getElementById('email_match').innerHTML = '<span style="color:red"><? print $REGISTER_PAGE_EMAILS_DO_NOT_MATCH; ?></span>';

       }

        }
            
            
 function usernameAjaxFunction(value1)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  
  
  var na=xmlhttp.responseText;
  

  
            if ( na != 1 )       {
  
      
           document.getElementById('username25').innerHTML='<span class=BOLDTEXT><span style="color:green"><? print $REGISTER_PAGE_AVAILABLE; ?></span></span>';     
    
                   }
   
           if ( na == 1 )       {
   
        document.getElementById('username25').innerHTML='<span class=BOLDTEXT><span style="color:red"><? print $REGISTER_PAGE_NOT; ?></span></span>'; 
  
            }
  
  
  
  }
}

value2 = "nick_lookup.php?nick=" + value1 + "";




xmlhttp.open("GET",value2,true);
xmlhttp.send(null);
}           
            
            
            
                   </script>
                   
       <? 
       
       $tabid = 3;
  include "tab_menu.php";
  $subtabid = "logout";
  include "tab_submenu.php";
  include "category_menu.php";
  $page_title_text = $MSG_163;
  
    if ( $free_sign_up_bids > 0 ) {
  $page_title_note = "<BR>$REGISTER_PAGE_GET_FREE_BIDS_JUST_FOR_REGISTERING1 ".$free_sign_up_bids." $REGISTER_PAGE_GET_FREE_BIDS_JUST_FOR_REGISTERING2<BR>";
                  }
        else {
  $page_title_note = " ";
                  }
  
  include "page_title.php";
  ?>            
      

     <? print $page_title_content_box_start; ?>
 

<p>
        

        <?
        if(!empty($TPL_errmsg)) {
        ?><BR> 
        <div class=errfont>
           <?=$TPL_errmsg?>
        </div>
        <?
        }
		?>

 <div class="EDITDATA3">

              
 
            <form name=registration action="registerphone.php" method="POST" onsubmit="return termcheck();">
                <table width="300" border="0" cellpadding="4" cellspacing=0>
                          
                
                    <?
                    if($SETTINGS['accounttype'] == 'sellerbuyer') {
					?>
					
					
					
                    <tr>
                        <td  valign="top" align="right"><b><? print $MSG_25_0133; ?></b></td>
                        </tr><tr><td>
                            <input type=radio name=accounttype value='seller' <?if($_POST['accounttype'] == 'seller') print " checked=true";?> />
                            <?=$MSG_25_0134?>
                            <?
                            if($SETTINGS['sbsignupconfirmation'] == 's' || $SETTINGS['sbsignupconfirmation'] == 'sb') {
                            	print "<P class=errfont>$MSG_25_0136</p>";
                            }
							?>
                            <br />
                            <input type=radio name=accounttype value='buyer' <?if($_POST['accounttype'] == 'buyer') print " checked=true";?> />
                            <?=$MSG_25_0135?>
                            <?
                            if($SETTINGS['sbsignupconfirmation'] == 'b' || $SETTINGS['sbsignupconfirmation'] == 'sb') {
                            	print "<P class=errfont>$MSG_25_0136</p>";
                            }
							?>
                        </td>
                    </tr>
                    <?
                    }
					?>
					
					            <tr>
                        
                                <td align=center>
                              				 
                                       <font COLOR=red >
                        <span class=BOLDTEXT><? print $REGISTER_PAGE_NOTE_ALL_FIELDS_REQUIRED; ?></font></span>   
                         </TR>
                        
	
                        
                        
                    <tr>
                        <td  valign="top" align="left"><font COLOR=#1E5A8C size=+1>
                        <span class=BOLDTEXT><? print $MSG_002; ?></font></span>  </td>
                        
                            
                              </TR>            
                            
                            
                            
                            
                            
                        <tr>
                        <td  valign="top" align="left"><b> 
                        
                        <? print $REGISTER_PAGE_HONORIFIC; ?>
                        
                         </td>                  
                         </tr><tr><td>
                   <span id=1a>  </span>     
              <SELECT id=1 NAME="TPL_surname" class=EDITDATA2A onmouseover=RequiredFields('1','1a'); onmouseout=RequiredFields2('1','1a');>
<OPTION VALUE="<?=$_POST[TPL_surname]?>"><?=$_POST[TPL_surname]?> 
<OPTION VALUE=<? print $REGISTER_PAGE_MR; ?> ><? print $REGISTER_PAGE_MR; ?>
<OPTION VALUE=<? print $REGISTER_PAGE_MRS; ?> ><? print $REGISTER_PAGE_MRS; ?>
<OPTION VALUE=<? print $REGISTER_PAGE_MS; ?> ><? print $REGISTER_PAGE_MS; ?>
<OPTION VALUE=<? print $REGISTER_PAGE_DR; ?> ><? print $REGISTER_PAGE_DR; ?>
</SELECT>     

     </td>  </TR>
                        <tr>
                        <td  valign="top" align="left"><b> 
                        
 <? print $REGISTER_PAGE_FIRST_NAME; ?>                         
               </td>                  
                         </tr><tr><td>
<span id=2a>  </span>
 <INPUT TYPE=text id=2 onmouseout=RequiredFields('2','2a'); onkeyup=RequiredFields2('2','2a'); class=EDITDATA2 NAME=TPL_first_name SIZE=12 MAXLENGTH=255 VALUE="<?=$_POST[TPL_first_name]?>" />



           </td>  </TR>
                        <tr>
                        <td  valign="top" align="left"><b> 
                   

 <? print $REGISTER_PAGE_LAST_NAME; ?>   

            </td>                  
                         </tr><tr><td>

<span id=3a>  </span>

 <INPUT TYPE=text id=3 onmouseout=RequiredFields('3','3a'); onkeyup=RequiredFields2('3','3a'); class=EDITDATA2 NAME=TPL_last_name SIZE=20 MAXLENGTH=255 VALUE="<?=$_POST[TPL_last_name]?>" />

   
                        
                        
                        
                        
                        
                <tr>
                        <td  valign="top" align="left"><font COLOR=#1E5A8C size=+1>
                        <span class=BOLDTEXT><? print $REGISTER_PAGE_USERNAME_AND_PASSWORD; ?></font></span>  </td>
                        
                     </TR>            
                            
                            
                            
                            
                            
                        </td>
                    </tr>
                    <tr>
                        <td  valign="top" align="left"><b> <? print $MSG_003; ?> </b> </td>
                        </tr><tr><td>
                        <span id=4a>  </span>
                            <input type=text id=4 onmouseout=RequiredFields('4','4a'); onkeyup="RequiredFields2('4','4a'); usernameAjaxFunction(this.value);"" class=EDITDATA2 name=TPL_nick size=20 maxlength=20  value="<?=$_POST[TPL_nick]?>" />
                     
                            <span id="username25" ><? print $REGISTER_PAGE_SIX_CHARACTERS_MIN; ?></span></td>
                    </tr>
                    <tr>
                        <td  valign="top" align="left"><b> <?print $MSG_004;?> </b> </td>
                        </tr><tr><td>
                        <span id=5a>  </span>
                            <input class=EDITDATA2 type=password id=5 onmouseout=RequiredFields('5','5a'); onkeyup="RequiredFields2('5','5a'); return passwordChanged();" name=TPL_password size=20 maxlength=20 value="" /> <span id="strength"><? print $REGISTER_PAGE_SIX_CHARACTERS_MIN; ?></span>  
                          <!--  <BR>Minimum password length is only six (6) characters. However, to be classified as "strong" by our system, your password needs to be at least eight (8) characters long with at least one (1) each of the following: capital letter, number and special character. The remainder can be lowercase letters. --></td>
                    </tr>
                    <tr>
                        <td  valign="top" align="left"><b> <? print $REGISTER_PAGE_REPEAT_PASSWORD; ?></b> </td>
                        </tr><tr><td>
                        <span id=6a>  </span>
                            <input class=EDITDATA2 type=password id=6 onmouseout=RequiredFields('6','6a'); onkeydown=RequiredFields2('6','6a'); onkeyup=passwordCheck(); name=TPL_repeat_password size=20 maxlength=20 value="" /> <BR><span class=BOLDTEXT><span id="password_match"></span>  </span>
                        </td>
                    </tr>
          
          
                   <tr>
                        <td  valign="top" align="left"><font COLOR=#1E5A8C size=+1>
                        <span class=BOLDTEXT><? print $REGISTER_PAGE_EMAIL_ADDRESS ?></font></span>  </td>
                        
                      </TR> 
          
          
                    <tr>
                        <td   valign="top" align="left"><b><? print $REGISTER_PAGE_EMAIL; ?></B></td>
                        </tr><tr><td>
                        <span id=7a>  </span>
                            <input type=text id=7 onmouseout=RequiredFields('7','7a'); onkeydown=RequiredFields2('7','7a'); class=EDITDATA2 name=TPL_email size=50 maxlength=50 value="<?=$_POST[TPL_email]?>" />
				
        
        
        	<?
						if(!empty($TPL_domains_alert)){
							print "<BR />".$TPL_domains_alert;
						}
					?>
                        </td>
                    </tr>
					
					                      
                    <tr>
                        <td   valign="top" align="left"><b><? print $REGISTER_PAGE_REPEAT_EMAIL; ?></B></td>
                        </tr><tr><td>
                        <span id=7bb>  </span>
                            <input type=text id=7b onmouseout=RequiredFields('7b','7bb'); onkeydown=RequiredFields2('7b','7bb'); onkeyup=emailCheck(); class=EDITDATA2 name=TPL_email2 size=50 maxlength=50 value="<?=$_POST[TPL_email]?>" /><BR><span class=BOLDTEXT> <span id="email_match"></span>  </span>
				
        
        
        	<?
						if(!empty($TPL_domains_alert)){
							print "<BR />".$TPL_domains_alert;
						}
					?>
                        </td>
                    </tr>
					
	
  
          <tr>
                        <td  valign="top" align="left"><font COLOR=#1E5A8C size=+1>
                        <span class=BOLDTEXT><? print $REGISTER_PAGE_MAILING_ADDRESS; ?></font></span>  </td>
                        
                          </TR>            
                            
                            
  				
                    
                    <tr>
                        <td  valign="top" align="left"><b><? print $REGISTER_PAGE_ADDRESS_PO_BOX; ?></b> </td>
                        </tr><tr><td>
                        <span id=9a>  </span>
                            <input type=text id=9 onmouseout=RequiredFields('9','9a'); onkeyup=RequiredFields2('9','9a'); class=EDITDATA2 name=TPL_address size=40 maxlength=255 value="<?=$_POST[TPL_address]?>" />
                        </td>
                    </tr>
					
					
					                      <tr>
                        <td  valign="top" align="left"><b><? print $REGISTER_PAGE_APARTMENT_SUITE ?></b> </td>
                        </tr><tr><td>
                        <span>  </span>
                            <input type=text class=EDITDATA2 name=TPL_address2 size=40 maxlength=255 value="<?=$_POST[TPL_address2]?>" />
                        </td>
                    </tr>
                    
                    
					
                    <tr>
                        <td  valign="top" align="left"><b><? print $MSG_010; ?></b> </td>
                        </tr><tr><td>
                        <span id=10a>  </span>
                            <input type=text id=10 onmouseout=RequiredFields('10','10a'); onkeyup=RequiredFields2('10','10a'); class=EDITDATA2 name=TPL_city size=25 maxlength=25 value="<?=$_POST[TPL_city]?>" />
                        </td>
                    </tr>
					
					        <tr>
                        <td  valign="top" align="left"><b><? print $MSG_011; ?></b> </td>
                        </tr><tr><td>
           <span id=11a>  </span>             
          <select name="TPL_prov" id=11 onmouseover=RequiredFields('11','11a'); onmouseout=RequiredFields2('11','11a'); class=EDITDATA2A >
          <option value="<?=$_POST[TPL_prov]?>"><?=$_POST[TPL_prov]?>                                                          
                                                                    
            <? include "themes/default/states_provinces_counties.php"; ?>                                                        
          </select>
                                                                
                           
                           
                           
                           
                                   </td>
                    </tr>
					
                  
					
                    <tr>
                        <td  valign="top" align="left"><b><?print $MSG_012; ?></b> </td>
                        </tr><tr><td>
                        <span id=12a>  </span>
                            <input type=text id=12 onmouseout=RequiredFields('12','12a'); onkeyup=RequiredFields2('12','12a'); class=EDITDATA2 name=TPL_zip size=12 value="<?=$_POST[TPL_zip]?>" />
                        </td>
                    </tr>
					             <tr>
                        <td  valign="top" align="left"><b> <?print $MSG_014?> </b> </td>
                        </tr><tr><td>
                            <select name=TPL_country class=EDITDATA2A >
                                <option value=""> <? print $MSG_251; ?> </option>
                                <?=$country?>
                            </select>
                        </td>
                    </tr>


     
     
         <tr>
                        <td  valign="top" align="left"><font COLOR=#1E5A8C size=+1>
                        <span class=BOLDTEXT><? print $REGISTER_PAGE_OTHER_INFO; ?></font></span>  </td>
                        
                              </TR>            
                            
                            
     
     
          
     <tr>
                        <td  valign="top" align="left"><b> <?print $MSG_252;?> </b> </td>
                        </tr><tr><td>
                        
                        
                       
                        
                       
                        
                        
                          <!--  <input type=text id=8 class=EDITDATA2 onmouseout=RequiredFields('8','8a'); onkeyup=RequiredFields2('8','8a'); name=TPL_birthdate size=10 maxlength=10 value="<?=$_POST[TPL_birthdate]?>" />          -->
<select id=8 onmouseout=RequiredFields('8','8a'); onmouseover=RequiredFields2('8','8a'); name="TPL_birthmonth" style="width:100px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#000000;">
 <option value=""><? print $REGISTER_PAGE_MONTH; ?></option> 
   <option value=<?=$_POST[TPL_birthmonth]; echo " selected"; ?>><?=$_POST[TPL_birthmonth]?></option>

<option value=01>01 - <? print $REGISTER_PAGE_JANUARY; ?></option>
<option value=02>02 - <? print $REGISTER_PAGE_FEBRUARY; ?></option>
<option value=03>03 - <? print $REGISTER_PAGE_MARCH; ?></option>
<option value=04>04 - <? print $REGISTER_PAGE_APRIL; ?></option>
<option value=05>05 - <? print $REGISTER_PAGE_MAY; ?></option>
<option value=06>06 - <? print $REGISTER_PAGE_JUNE; ?></option>
<option value=07>07 - <? print $REGISTER_PAGE_JULY; ?></option>
<option value=08>08 - <? print $REGISTER_PAGE_AUGUST; ?></option>
<option value=09>09 - <? print $REGISTER_PAGE_SEPTEMBER; ?></option>
<option value=10>10 - <? print $REGISTER_PAGE_OCTOBER; ?></option>
<option value=11>11 - <? print $REGISTER_PAGE_NOVEMBER; ?></option>
<option value=12>12 - <? print $REGISTER_PAGE_DECEMBER; ?></option>
						</select>
            
             
						<select id=8b onmouseout=RequiredFields('8b','8a'); onmouseover=RequiredFields2('8b','8a'); name="TPL_birthday" style="width:60px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#000000;">

  <option value=""><? print $REGISTER_PAGE_DAY; ?></option>
   <option value=<?=$_POST[TPL_birthday]; echo " selected"; ?>><?=$_POST[TPL_birthday]?></option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>

						</select> 
						
						
						
						
<SELECT id=8c onmouseout=RequiredFields('8c','8a'); onmouseover=RequiredFields2('8c','8a'); NAME="TPL_birthyear" style="width:80px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#000000;">
 <option value=""><? print $REGISTER_PAGE_YEAR; ?></option> 
<OPTION VALUE=<?=$_POST[TPL_birthyear]; echo " selected"; ?>><?=$_POST[TPL_birthyear]?>
<OPTION VALUE=1910>1910
<OPTION VALUE=1911>1911
<OPTION VALUE=1912>1912
<OPTION VALUE=1913>1913
<OPTION VALUE=1914>1914
<OPTION VALUE=1915>1915
<OPTION VALUE=1916>1916
<OPTION VALUE=1917>1917
<OPTION VALUE=1918>1918
<OPTION VALUE=1919>1919
<OPTION VALUE=1920>1920
<OPTION VALUE=1921>1921
<OPTION VALUE=1922>1922
<OPTION VALUE=1923>1923
<OPTION VALUE=1924>1924
<OPTION VALUE=1925>1925
<OPTION VALUE=1926>1926
<OPTION VALUE=1927>1927
<OPTION VALUE=1928>1928
<OPTION VALUE=1929>1929
<OPTION VALUE=1930>1930
<OPTION VALUE=1931>1931
<OPTION VALUE=1932>1932
<OPTION VALUE=1933>1933
<OPTION VALUE=1934>1934
<OPTION VALUE=1935>1935
<OPTION VALUE=1936>1936
<OPTION VALUE=1937>1937
<OPTION VALUE=1938>1938
<OPTION VALUE=1939>1939
<OPTION VALUE=1940>1940
<OPTION VALUE=1941>1941
<OPTION VALUE=1942>1942
<OPTION VALUE=1943>1943
<OPTION VALUE=1944>1944
<OPTION VALUE=1945>1945
<OPTION VALUE=1946>1946
<OPTION VALUE=1947>1947
<OPTION VALUE=1948>1948
<OPTION VALUE=1949>1949
<OPTION VALUE=1950>1950
<OPTION VALUE=1951>1951
<OPTION VALUE=1952>1952
<OPTION VALUE=1953>1953
<OPTION VALUE=1954>1954
<OPTION VALUE=1955>1955
<OPTION VALUE=1956>1956
<OPTION VALUE=1957>1957
<OPTION VALUE=1958>1958
<OPTION VALUE=1959>1959
<OPTION VALUE=1960>1960
<OPTION VALUE=1961>1961
<OPTION VALUE=1962>1962
<OPTION VALUE=1963>1963
<OPTION VALUE=1964>1964
<OPTION VALUE=1965>1965
<OPTION VALUE=1966>1966
<OPTION VALUE=1967>1967
<OPTION VALUE=1968>1968
<OPTION VALUE=1969>1969
<OPTION VALUE=1970>1970
<OPTION VALUE=1971>1971
<OPTION VALUE=1972>1972
<OPTION VALUE=1973>1973
<OPTION VALUE=1974>1974
<OPTION VALUE=1975>1975
<OPTION VALUE=1976>1976
<OPTION VALUE=1977>1977
<OPTION VALUE=1978>1978
<OPTION VALUE=1979>1979
<OPTION VALUE=1980>1980
<OPTION VALUE=1981>1981
<OPTION VALUE=1982>1982
<OPTION VALUE=1983>1983
<OPTION VALUE=1984>1984
<OPTION VALUE=1985>1985
<OPTION VALUE=1986>1986
<OPTION VALUE=1987>1987
<OPTION VALUE=1988>1988
<OPTION VALUE=1989>1989
<OPTION VALUE=1990>1990
<OPTION VALUE=1991>1991
</SELECT>
						        <span id=8a>  </span>
					 &nbsp;<br><font size=-2><? print $REGISTER_PAGE_MUST_BE_18; ?>	</font>
						

                         
                         
                         
                         
                         
                         
                            <?
                            
                            
                          //  if($SETTINGS[datesformat] == "USA") {
                          //  	print $MSG_382;
                         //   } else {
                         //   	print $MSG_383;
                         //   }
                            
                            
  							?>
                        </td>
                    </tr>
					

                  
          
          
          
          
          
          
                             <tr>
                        <td  valign="top" align="left"><b><? print $MSG_013; ?> </b> </td>
                        </tr><tr><td>
                      
                        
                  
                     <? if ( $phone_type2 == 'usa' ) { ?> 
                      <!--      <input type=text id=22 onmouseout=RequiredFields('22','22a'); onkeyup=RequiredFields2('22','22a'); class=EDITDATA2 name=TPL_phone size=8 value="<?=$_POST[TPL_phone]?>" />      -->
                      
                     ( <input type=text id=22 onmouseout=RequiredFields('22','22a'); onkeyup=RequiredFields2('22','22a'); class=EDITDATA4 name=TPL_phone1 size=3 maxlength=3 value="<?=$_POST[TPL_phone1]?>" /> ) 
                       &nbsp;<input type=text id=23 onmouseout=RequiredFields('23','22a'); onkeyup=RequiredFields2('23','22a'); class=EDITDATA4 name=TPL_phone2 size=3 maxlength=3 value="<?=$_POST[TPL_phone2]?>" />
                       - <input type=text id=24 onmouseout=RequiredFields('24','22a'); onkeyup=RequiredFields2('24','22a'); class=EDITDATA5 name=TPL_phone3 size=4 maxlength=4  value="<?=$_POST[TPL_phone3]?>" />
                                    <? } ?>
                                    
                                    <? if ( $phone_type2 != 'usa' ) { ?> 
                      <!--      <input type=text id=22 onmouseout=RequiredFields('22','22a'); onkeyup=RequiredFields2('22','22a'); class=EDITDATA2 name=TPL_phone size=8 value="<?=$_POST[TPL_phone]?>" />      -->
                      
                     <input type=text id=22 onmouseout=RequiredFields('22','22a'); onkeyup=RequiredFields2('22','22a'); class=EDITDATA2 name=TPL_phone1 size=24 maxlength=24 value="<?=$_POST[TPL_phone1]?>" />
                                   <input type=hidden id=23 onmouseout=RequiredFields('23','22a'); onkeyup=RequiredFields2('23','22a'); class=EDITDATA4 name=TPL_phone2 size=3 maxlength=3 value=" " />
                       <input type=hidden id=24 onmouseout=RequiredFields('24','22a'); onkeyup=RequiredFields2('24','22a'); class=EDITDATA5 name=TPL_phone3 size=4 maxlength=4  value=" " />
                                   
                                    <? } ?>
               
                   <span id=22a>  </span>    
                      &nbsp;<br><font size=-2><? print $REGISTER_PAGE_USED_ONLY_FOR_CUSTOMER_SERVICE; ?>	</font>
                      
                     
                      
                        </td>
                    </tr>
                    
                    
                    
          

                 
					<?
                    if($SETTINGS[userscreditcard] == 'y' && $_SERVER[HTTPS] == 'on') {
					?>
                    <tr bgcolor="<?=$SETTINGS[headercolor]?>">
                        <td  valign="top" align="left"><b>
                            <?=$MSG_5272;?>
                            </b> </td>
                        </tr><tr><td>
                            <?=$MSG_5273?>
                            <br />
                            <table width="100%" border="0" cellspacing="0" cellpadding="2">
                                <tr>
                                    <td width="25%"><b>
                                        <?=$MSG_5285?>
                                        </b></td>
                                    <td width="75%">
                                        <input type=text class=EDITDATA2 name=TPL_cc size=16 maxlength=16 value="<?=$_POST[TPL_cc]?>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%"><b>
                                        <?=$MSG_5286?>
                                        </b></td>
                                    <td width="75%">
                                        <input type="text" name="TPL_exp_month" size="2" value="<?=$_POST[TPL_exp_month]?>" />
                                        /
                                        <input type="text" name="TPL_exp_year" size="2" value="<?=$_POST[TPL_exp_year]?>" />
                                        <?=$MSG_5288?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%"><b>
                                        <?=$MSG_5287?>
                                        </b></td>
                                    <td width="75%">
                                        <input type="text" name="TPL_card_owner" value="<?=$_POST[TPL_card_owner]?>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%"><b>
                                        <?=$MSG_5301?>
                                        </b></td>
                                    <td width="75%">
                                        <input type="text" size=10 name="TPL_card_zip" value="<?=$_POST[TPL_card_zip]?>" />
                                    </td>
                                </tr>
                                
                                
                                
                                
                                
                                
                                
                                
                                
                       
                                                    
                                
                                
                            </table>
                        </td>
                    </tr>
                    <?
                    }
					?>
                    <?
                    if($SETTINGS[newsletter] == 1) {
					?>
                    <tr>
                        <td  align=left><b><?print $MSG_608;?></b></td>
                        </tr><tr><td>
                            <input type="radio" name="TPL_nletter" value="1"<? if($_POST[TPL_nletter] == 1 || empty($_POST[TPL_nletter])) print " checked=true";?> />
                            <?=$MSG_030;?>
                            <input type="radio" name="TPL_nletter" value="2"<? if($_POST[TPL_nletter] == 2) print " checked=true";?> />
                            <?=$MSG_029;?>
                        </td>
                    </tr>
                    <?
                    }
					?>
					
					
					 <tr>
                        <td  valign="top" align="left"><b> <? print $MSG_5086; ?> </b> </td>
                        </tr><tr><td>
                        <span id=13a>  </span>
                     <input type="checkbox" name="TPL_terms" id=13><? print $REGISTER_PAGE_TERMS_AND_CONDITIONS_NOTE; ?>
                     
                        </td>
                        </tr>
                                     
                                
                             <tr>
                        <td  valign="top" align="left"><b> <? print $REGISTER_PAGE_PRIVACY_POLICY; ?> </b> </td>
                        </tr><tr><td>
                        <span id=14a>  </span>
                     <input type="checkbox" name="TPL_privacy" id=14> <? print $REGISTER_PAGE_PRIVACY_POLICY_NOTE; ?> 
			                                 
                        </td>
                        </tr> 
                </table>
                <div style="text-align:center">
                    <?
                    if($SETTINGS[showacceptancetext] == 0) {
					?>
                    <p>
                        <?=nl2br(stripslashes($SETTINGS[acceptancetext]))?>
                    </p>
                    <?
                    }
					?>
                    <input type=hidden name="action" value="first" />
                    <input type="hidden" name="TPL_id_hidden" value="<?=$_POST[TPL_id_hidden]?>" />
                    <input type="hidden" name="TPL_nick_hidden" value="<?=$_POST[TPL_nick_hidden]?>" />
                    <input type="hidden" name="TPL_password_hidden" value="<?=$_POST[TPL_password_hidden]?>" />
                    <input type="hidden" name="TPL_name_hidden" value="<?=$_POST[TPL_name_hidden]?>" />
                    <input type="hidden" name="TPL_email_hidden" value="<?=$_POST[TPL_email_hidden]?>" />
                    
 <input type="hidden" name="TPL_password_backup" value="<?=$TPL_password ?>" />
 
 
 
                    
                          <p> <BR>
                    <input type=submit name="" value=" <? print $REGISTER_PAGE_COMPLETE_REGISTARTION_BUTTON; ?> " class=button  />
                    <!-- <input type=reset name="" value="Reset" class=button />    -->
                    

                </div>
            </form>
    
  
</div>

    <? print $page_title_content_box_stop; ?>


